/*      
 * 模块编号  
 * 功能描述 
 * 文件名 PaymentHystrixService.java 
 * 作者 王磊 
 * 编写日期 2022年01月19日 
 */
package wl.demo.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT",
		fallback = PaymentFallbackService.class)
public interface PaymentHystrixService {
	@GetMapping("/payment/hystrix/ok/{id}")
	String paymentInfo_OK(@PathVariable("id") Integer id);

	@GetMapping("/payment/hystrix/timeout/{id}")
	String paymentInfo_TimeOut(@PathVariable("id") Integer id);
}
